﻿using System;
using Microsoft.Practices.Prism.Interactivity.InteractionRequest;
using Microsoft.Practices.Prism.ViewModel;

namespace PrismInteractionLack
{
	public class ViewModel : NotificationObject
	{
		public String PopupContent { get; set; }





		private readonly InteractionRequest<Confirmation> _myСonfirmationRequest = new InteractionRequest<Confirmation>();
		public IInteractionRequest MyСonfirmationRequest
		{
			get { return _myСonfirmationRequest; }
		}

		public void RaiseMyСonfirmationRequest()
		{
			_myСonfirmationRequest.Raise(new Confirmation
				{
					Content = PopupContent,
				});
		}




		private readonly WeakInteractionRequest<Confirmation> _myWeakСonfirmationRequest = new WeakInteractionRequest<Confirmation>();
		public IInteractionRequest MyWeakСonfirmationRequest
		{
			get { return _myWeakСonfirmationRequest; }
		}

		public void RaiseMyWeakСonfirmationRequest()
		{
			_myСonfirmationRequest.Raise(new Confirmation
				{
					Content = PopupContent,
				});
		}




		private readonly InteractionRequest<Confirmation> _myUnloadableСonfirmationRequest = new InteractionRequest<Confirmation>();
		public IInteractionRequest MyUnloadableСonfirmationRequest
		{
			get { return _myUnloadableСonfirmationRequest; }
		}

		public void RaiseMyUnloadableСonfirmationRequest()
		{
			_myСonfirmationRequest.Raise(new Confirmation
				{
					Content = PopupContent,
				});
		}




	}
}
